* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.calculator-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-bottom: 0;
}

.calculator {
    background-color: white;
    border-radius: 0;
    box-shadow: none;
    padding: 5vh 5vw;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 2.5rem;
}

p {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.input-area {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.2rem;
}

select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 1.2rem;
}

button {
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.result-area {
    margin-top: 30px;
    flex-grow: 1;
    margin-bottom: 30px;
}

h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.result {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    min-height: 120px;
    word-break: break-all;
    font-family: monospace;
    font-size: 1.2rem;
    overflow-y: auto;
    max-height: 300px;
}

.instructions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.instructions h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.instructions ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
    font-size: 1.1rem;
}

.instructions .note {
    font-style: italic;
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

.footer {
    position: relative;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 18px 0;
    font-size: 16px;
    margin-top: auto;
    left: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    body {
        display: flex;
        overflow: hidden;
    }
    
    .calculator-container {
        min-height: 100vh;
        margin-bottom: 0;
        padding: 0;
    }
    
    .calculator {
        border-radius: 0;
        padding: 20px;
        margin-bottom: 0;
        height: 100%;
    }
    
    .input-area {
        flex-direction: column;
    }
    
    input[type="text"] {
        min-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .footer {
        position: relative;
    }
}

@media (max-width: 500px) {
    .input-area {
        flex-direction: column;
    }
    
    input[type="text"] {
        min-width: 100%;
    }
} 